package 线程.day4.demo1;

public class Test {
    public static void main(String[] args)throws Exception {
        T t=new T();
        Thread th=new Thread(t,"我的线程");
        th.start();
        Thread.sleep(1);
        synchronized (t){
            System.out.println("主线程notify前....");
            t.notify();
            Thread.sleep(100);
            System.out.println("主线程notify后。。。");
        }
    }
}
